package com.pango.core.paginator.json;

import com.fasterxml.jackson.core.Version;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.module.SimpleModule;
import com.pango.core.easyui.json.ResultMessage;
import com.pango.core.paginator.domain.PageList;

/**
 * @author miemiedev
 */
public class PageListJsonMapper extends ObjectMapper{

    /**
	 * 
	 */
	private static final long serialVersionUID = -8078332247094705001L;

	public PageListJsonMapper() {
        SimpleModule module = new SimpleModule("PageListJSONModule", new Version(1, 0, 0, null, null, null));
        module.addSerializer(PageList.class, new PageListJsonSerializer());
        module.addSerializer(ResultMessage.class, new ResultMessageJsonSerializer());
        registerModule(module);
    }
}
